package com.jeespring.business.config;

import io.seata.spring.annotation.GlobalTransactionScanner;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Title: SeataConfig
 * @Description:
 * @Author 张朝阳
 * @Date 2020/11/29 21:03
 */
@Configuration
public class SeataConfig {

    /**
     * init global transaction scanner
     *
     * @Return: GlobalTransactionScanner
     */
    @Bean
    public GlobalTransactionScanner globalTransactionScanner(){
        return new GlobalTransactionScanner("jeespring-business-seata", "my_test_tx_group");
    }
}
